﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Fred;

namespace Fred.CmdLine
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "FRED - Test Console runner - H: Help, Q: Quit";
            Console.Clear();

            ServiceFactory.Instance.ToString();

            bool stop = false;
            while (!stop)
            {
                ConsoleKeyInfo info = Console.ReadKey();
                switch(info.KeyChar)
                {
                    case 'Q' :
                    case 'q' :
                        stop = true;
                        break;
                    case 'H' :
                    case 'h' :
                        Console.Clear();
                        Console.WriteLine("Q: Quit this application, all started services will be stopped");
                        Console.WriteLine("H: This text");
                        Console.WriteLine("1: Set log output level to Information only");
                        Console.WriteLine("2: Set log output level to Warning and below");
                        Console.WriteLine("3: Set log output level to Error and below (default)");
                        Console.WriteLine("4: Set log output level to Trace and below");
                        Console.WriteLine();
                        break;
                }
            }
        }
    }
}
